<?php
class widget_blog extends CWidget {
  public function run() {
    
    $articles = Article::model()->getTopArticles(3);        
    $this->render('widget_blog', array(
      'articles' => $articles
    ));
    
  }
}
?>